package com.ruoyi.contractAndAudit.mapper;

import com.ruoyi.contractAndAudit.domain.DocContract1;
import com.ruoyi.contractAndAudit.mapper.vo.ContractVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DocAuditMapper {

    void addContract(DocContract1 docContract1);

    List<ContractVO> getDocContract(Long userId);

    Long getContractId(@Param("userId") Long userId, @Param("teamId") Long teamId);

    void updateUserContractId(@Param("userId") Long userId, @Param("contractId") Long contractId);

    int checkContracted(@Param("userId") Long userId, @Param("teamId") Long teamId);

    int checkContracting(@Param("userId") Long userId, @Param("teamId") Long teamId);

}
